BEGIN {

total=0
success=0
failed=0
scheduled=0
building=0
finished=0

FS=";"

}


{

total += 1

if ($NF == "succeeded") {
  success += 1
} 

if ($NF == "failed") {
  failed += 1
}

if ($NF == "scheduled") {
  scheduled += 1
}

if ($NF == "building") {
  building += 1
}

if ($NF == "finished") {
  finished += 1
}

}

END {

printf "%-10s: %d\n", "total", total
printf "%-10s: %d\n", "succeeded", success
printf "%-10s: %d\n", "failed", failed
printf "%-10s: %d\n", "scheduled", scheduled
printf "%-10s: %d\n", "building", building
printf "%-10s: %d\n", "finished", finished

}


